Application program page processing method and device

ABSTRACT

Aspects of the disclosure provide a method and an apparatus for information processing. For example, the apparatus includes a storage medium, processing circuitry and network interface circuitry. The storage medium stores a first application program, and other application programs that are downloaded via the network interface circuitry. The processing circuitry executes the first application program in an operating system to provide a running environment. Further, the processing circuitry executes a second application program in the running environment to start a logic process and a first view process corresponding to a first view page of the second application program. The logic process and the first view process respectively interface with the running environment. The logic process generates initial first page data, and the initial first page data is transferred from the logic process to the first view process. The first view page is rendered in the first view process.

RELATED APPLICATION

This application is a continuation of International Application No.PCT/CN2017/113066, filed on Nov. 27, 2017, which claims priority toChinese Patent Application No. 201611104220.4, entitled “APPLICATIONPROGRAM PAGE PROCESSING METHOD AND DEVICE” filed with the Chinese PatentOffice on Dec. 5, 2016. The entire disclosures of the prior applicationsare hereby incorporated by reference in their entirety.

FIELD OF THE TECHNOLOGY

This application relates to the field of computers, and particularly, toan application program page processing method and an application programpage processing device.

BACKGROUND OF THE DISCLOSURE

Application program is a coded instruction sequence executed by aterminal capable of processing information such as a computer, so as toachieve a certain result, or a symbolized instruction sequence or asymbolized statement sequence that can be converted into a codedinstruction sequence automatically. At present, a user can installvarious application programs on a terminal, such as a photographingapplication program, a social application program, or a mail applicationprogram, and various functions, such as a photographing function, asocial function, and an e-mail management function, can be implementedby the application programs installed on the terminal.

However, at present, a user needs to download an application programinstallation package from network first, decompress the applicationprogram installation package on a terminal, places various decompressedfiles in a specified installation directory, registers the applicationprogram in an operating system, and generates an icon of the applicationprogram, and then, the user can start and use the application program byclicking the icon. Therefore, an application program is installed andused after a series of time-consuming and troublesome steps at present,resulting in a low utilization rate of an application program.

SUMMARY

On the basis of this, it is necessary to provide an application programpage processing method, an application program page processing device,and a storage medium so as to resolve the current problem that theutilization rate of an application program is low.

Aspects of the disclosure provide a method and an apparatus forinformation processing. In some examples, the apparatus includes astorage medium, processing circuitry and network interface circuitry.The storage medium stores a first application program, and otherapplication programs that are downloaded via the network interfacecircuitry. The processing circuitry executes the first applicationprogram in an operating system. The execution of the first applicationprogram provides a running environment for other application programs.Further, the processing circuitry executes a second application programin the running environment that is provided by the execution of thefirst application program. The execution of the second applicationprogram starts a logic process and a first view process corresponding toa first view page of the second application program. The logic processand the first view process respectively interface with the runningenvironment that is provided by the execution of the first applicationprogram. The logic process generates initial first page data based onfirst logic code of the first view page. Then the processing circuitrytransfers, via the running environment, the initial first page data fromthe logic process to the first view process. Further, the processingcircuitry renders, in the first view process, the first view pageaccording to the initial first page data of the first view page, andfeeds back, via the running environment, a completion notification fromthe first view process to the logic process.

According to an aspect of the disclosure, the processing circuitrytransfers, via the running environment, updated data for a portion ofthe first view page from the logic process to the first view process.Then, the processing circuitry re-renders, in the first view process,the portion of the first view page according to the updated data for theportion of the first view page.

In some embodiments, the processing circuitry acquires, in the runningenvironment, global configuration codes of the second applicationprogram based on a program identifier of the second application program.The processing circuitry starts, in the running environment, the logicprocess and the first view process according to the global configurationcodes of the second application program. Further, the processingcircuitry registers, in the logic process, the first logic code of thefirst view page when the logic process of the second application programstarts. The processing circuitry acquires, in the logic process, theinitial first page data of the first view page, according to the firstlogic code, after completion of an initialization in the first viewprocess, and sends, via the running environment, the initial first pagedata of the first view page, from the logic process to the first viewprocess corresponding to the first view page.

In some embodiments, the processing circuitry starts in the runningenvironment, the logic process according to a global logic code in theglobal configuration codes of the second application program, andstarts, the first view process according to a global feature of thefirst view page that is defined by global page configuration codes inthe global configuration codes of the second application program. Theglobal page configuration codes defines global features for view pagesof the second application program.

In some embodiments, the processing circuitry acquires, in the firstview process, a public component from the running environment that isprovided by the execution of the first application program, according toa page configuration file of the second application program. The publiccomponent is shared by different application programs that are executedin the running environment. Then, the processing circuitry renders, inthe first view process, the first view page according to the publiccomponent and the initial first page data of the first view page.Further, in some examples, the processing circuitry acquires in thefirst view process, an event that binds with the public component, andforwards, via the running environment that is provided by the executionof the first application, the event from the first view process to thelogic process. The processing circuitry generates, in the logic processand via an interface provided by the running environment to the publiccomponent, updated data for a portion of the first view page in responseto the event, according to the logic code of the first view page.

In some embodiments, the processing circuitry acquires, in the logicprocess, an event that triggers a switching from the first view page toa second view page, and acquires, in the logic process, second page dataof the second view page. Further, the processing circuitry transfers,via the running environment, the second page data of the second viewpage from the logic process to a second view process corresponding tothe second view page. The execution of the second application program inthe running environment starts the second view process after the firstview process starts. The processing circuitry then renders in the secondview process, the second view page according to the second page data ofthe second view page. When the second view page is a new view page, theprocessing circuitry acquires in the logic process, the second page dataaccording to the logic code of the first view page, and loads, in thelogic process, the second page data into a page stack that buffers viewpages. When the second view page has been accessed previously, theprocessing circuitry acquires in the logic process, the second page datafrom the page stack. The page stack buffers the view pages that havebeen accessed previously.

In some embodiments, a state change of the first view page from a firststate to a second state is triggered in the running environment. Then,the processing circuitry performs an operation that is defined in thefirst logic code of the first view page by a function associated withthe second state.

Aspects of the disclosure also provide a non-transitorycomputer-readable medium storing instructions which when executed by acomputer cause the computer to perform the method for informationprocessing.

Regarding the application program page processing method and theapplication program page processing device, a parent application programruns on an operating system, the parent application program provides arunning environment for the sub-application program logic layer unit andthe first sub-application program view layer unit, acquires initial pagedata through the sub-application program logic layer unit, andimplements rendering of the first page through the first sub-applicationprogram view layer unit. Thus, when the parent application program isrunning, a page that belongs to a sub-application program can beimplemented, thereby saving time of installing an application programand enhancing use efficiency of the sub-application program.Furthermore, when the first page is changed, only an updated part needsto be rendered, so as to further enhance the use efficiency of thesub-application program. Furthermore, the sub-application program logiclayer unit and the first sub-application program view layer unitseparate a view layer and a logic layer of the application program, soas to realize and maintain the sub-application program conveniently.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a diagram of an application environment of an applicationprogram page processing method according to an embodiment;

FIG. 2 is a schematic diagram of an internal structure of a terminalaccording to an embodiment;

FIG. 3 is a schematic flowchart of an application program pageprocessing method according to an embodiment;

FIG. 4 is a schematic diagram of a relationship of an operating system,a parent application program, a sub-application program view layer unit,and a sub-application program logic layer unit according to anembodiment;

FIG. 5 is a schematic flowchart of the steps of starting thesub-application program logic layer unit and the first sub-applicationprogram view layer unit according to an embodiment;

FIG. 6 is a schematic flowchart of the application program pageprocessing method according to another embodiment;

FIG. 7 is a schematic flowchart of the steps of switching a first pageto a second page according to an embodiment;

FIG. 8 is a schematic view of a life cycle of a sub-application programpage according to an embodiment;

FIG. 9 is a structural block diagram of an application program pageprocessing device according to an embodiment;

FIG. 10 is a structural block diagram of an application program pageprocessing device according to another embodiment; and

FIG. 11 is a structural block diagram of an application program pageprocessing device according to further another embodiment.

DESCRIPTION OF EMBODIMENTS

To make the objectives, technical solutions, and advantages of theembodiments of this application be more clear and comprehensible, thisapplication will be further described with reference to the accompanydrawings and embodiments. It should be understood that, the specificembodiments described herein are only used to interpret thisapplication, rather than limiting this application.

FIG. 1 is a diagram of an application environment of an applicationprogram page processing method according to an embodiment. Referring toFIG. 1, the application program page processing method is applied in anapplication program page processing system. The application program pageprocessing system includes a terminal 110 and a server 120. The server120 stores a code package corresponding to a sub-application programidentifier. An operating system runs on the terminal 110, a parentapplication program runs on the operating system, the code packagecorresponding to the sub-application program identifier is acquired bythe parent application program, and a sub-application program logiclayer unit and a first sub-application program view layer unit run in anenvironment provided by the parent application program according to thecode package. The terminal 110 specifically can acquire initial pagedata of a first page through the sub-application program logic layerunit according to logic code of the first page and send the initial pagedata of the first page to the first sub-application program view layerunit corresponding to the first page; render the first page through thefirst sub-application program view layer unit according to the initialpage data of the first page, and feed back an initial renderingcompletion notification to the sub-application program logic layer unit;receive the initial rendering completion notification through thesub-application program logic layer unit, then acquire updated pagedata, and send the updated page data to the first sub-applicationprogram view layer unit; and re-render the updated part in the firstpage through the first sub-application program view layer unit accordingto the updated page data.

FIG. 2 is a schematic diagram of an internal structure of a terminalaccording to an embodiment. Referring to FIG. 2, the terminal 110includes a processor 210, a non-volatile storage medium 220, an internalmemory 230, a network interface 240, a display screen 250, and an inputdevice 260 connected through a system bus. The non-volatile storagemedium 220 of the terminal 110 stores an operating system 221, andfurther stores an application program page processing device 222. Theapplication program page processing device 222 is configured toimplement an application program page processing method. The processor210 of the terminal 110 is configured to provide computation and controlability to support operation of the whole terminal 110. The internalmemory 230 in the terminal 110 provides an environment for operation ofthe application program page processing device 222 in the non-volatilestorage medium 220. The internal memory 230 may store a computerreadable instruction and when the computer readable instruction isexecuted by the processor 210, the processor 210 may perform anapplication program page processing method. The network interface 240 ofthe terminal 110 is configured to perform network communications with aserver, for example, download a code package corresponding to thesub-application program identifier. The display screen 250 of theterminal 110 may be a liquid crystal display or an electronic inkdisplay screen, and the input device 260 of the terminal 110 may be atouch layer covered on the display screen, may also be a button, a trackball, or a touch pad disposed on a housing of the terminal 110, andfurther may also be an external keyboard, an external touch pad, or amouse. The terminal 110 may be a personal computer or a mobile terminal,and the mobile terminal is, for example, a mobile phone, a tablet PC, apersonal digital assistant, or a wearable device. A person skilled inthe art may understand that, the structure in FIG. 2 is only a blockdiagram of a part of the structure that is associated with the solutionof this application, and do not limit the terminal to which the solutionof this application is applied. The specific terminal 110 may includemore or less members than those in FIG. 2, have some members combined,or have different member arrangements.

FIG. 3 is a schematic flowchart of an application program pageprocessing method according to an embodiment. In this embodiment, forexample, the method is mainly applied to a terminal 110 in FIG. 1.Referring to FIG. 3, the method specifically includes the followingsteps.

S302: Acquire initial page data of a first page through thesub-application program logic layer unit according to logic code of thefirst page, send the initial page data of the first page to the firstsub-application program view layer unit corresponding to the first page;the sub-application program logic layer unit and the firstsub-application program view layer unit running in an environmentprovided by the parent application program, and the parent applicationprogram running on an operating system.

The first page and a second page that will be described subsequently areboth sub-application program pages. The logic code of the first pagedefines data processing logic of the first page, such as processinglogic of an event triggered in the first page or data update logic notdriven by an event in the first page. The initial page data of the firstpage is page data pre-defined for the first page and data required forrendering the first page.

Referring to FIG. 4, the operating system runs on the terminal and theparent application program runs on the operating system. The parentapplication program provides an environment for operation of thesub-application program, and creates a sub-application program logiclayer unit and a corresponding sub-application program view layer unitfor implementing a sub-application program.

The operating system (OS) is a computer program for managing andcontrolling hardware and software resources of a terminal and is mostbasic system software directly running on a bare terminal. Anapplication program needs to run under the support of the operatingsystem. The operating system may be a desktop operating system such as aWindows operating system, a Linux operating system or a Mac OS, and mayalso be a mobile terminal operating system such as an iOS or an Androidoperating system.

The parent application program is an application program for carrying asub-application program and provides an environment for implementationof the sub-application program. The parent application program is anative application program. The native application program is anapplication program that can run on an operating system directly. Theparent application program may be a social application program, adedicated application program specially supporting the sub-applicationprogram, a file management application program, a mail applicationprogram or a game application program. The social application programincludes an instant communications application, a Social Network Service(SNS) application or a live application. The sub-application program isan application program that can be implemented in an environmentprovided by the parent application program. The sub-application programspecifically may be a social application program, a file managementapplication program, a mail application program, or a game applicationprogram.

The sub-application program logic layer unit and the correspondingsub-application program view layer unit are configured to implement anexample of a sub-application program. One sub-application program can beimplemented by one sub-application program logic layer unit and at leastone sub-application program view layer unit. The sub-application programview layer units may be one-to-one corresponding to the sub-applicationprogram pages. The first sub-application program view layer unit is oneof at least one sub-application program view layer units, iscorresponding to the first page, and is configured to organize the viewof the first page and render the first page.

The sub-application program view layer unit is configured to organizeand render a view of a sub-application program. The sub-applicationprogram logic layer unit is configured to process the sub-applicationprogram and data processing logic of a corresponding sub-applicationprogram page. The unit may be specifically a process or thread, thesub-application program view layer unit is, for example asub-application program view layer thread, and the sub-applicationprogram logic layer unit is, for example, a sub-application programlogic layer thread. The sub-application program logic layer unit may runin a virtual machine. The sub-application program view layer unit andthe sub-application program logic layer unit may perform transferenceand communications through the parent application program native unit,the parent application program native unit is an interface forcommunications between the parent application program and thesub-application program, and the parent application program native unitmay be a thread or process of the parent application program.

The logic code of each sub-application program page includes logic codeof the first page and a second page that will be described subsequently,and may be registered by the sub-application program logic layer unitwhen being started. The first page may be a home page of asub-application program, so that the sub-application program logic layerunit can directly acquire the initial page data of the first page afterbeing started and send the initial page data of the first page to thefirst sub-application program view layer unit corresponding to the firstpage. The first page may also be a sub-application program pagespecified by the parent application program, so that the sub-applicationprogram logic layer unit can acquire the initial page data of the firstpage after the parent application program specifies the first page andsend the initial page data to the first sub-application program viewlayer unit corresponding to the first page.

S304: Render the first page through the first sub-application programview layer unit according to the initial page data of the first page,and feed back an initial rendering completion notification to thesub-application program logic layer unit.

The initial rendering completion notification is a notificationrepresenting that an action of rendering the first page according to theinitial page of the first page is completed. The initial page data maybe a character or a resource address, and the terminal specifically candraw the character in the first page, and further can acquire resourceslocally or from network according to the resource address, and draw theacquired resources in the first page.

In an embodiment, the first sub-application program view layer unit maypre-load public resource when being started, and then, after receivingthe initial page data of the first page, render the first page accordingto the public resource required for rendering the first page and theinitial page data of the first page, and feeds back an initial renderingcompletion notification to the sub-application program logic layer unit.The public resource refers to resource shared to generate differentsub-application program pages, for example, a rendering engine, publicpage structure code, or public style data.

S306: Acquire updated page data after receiving the initial renderingcompletion notification through the sub-application program logic layerunit, and send the updated page data to the first sub-applicationprogram view layer unit.

The updated page data is data used to update and render the first page.The terminal can generate updated page data automatically through thesub-application program logic layer unit according to automaticallyexecuted code defined in the logic code of the first page. The terminalcan also, after receiving an event sent by the first sub-applicationprogram view layer unit, make a response to the event through thesub-application program logic layer unit according to the logic code ofthe first page, so as to generate the updated page data.

S308: Re-render an updated part in the first page through the firstsub-application program view layer unit according to the updated pagedata.

The updated part is a part in the first page that needs to be changed,may be a changed part of the first page compared with renderingaccording to the initial page data or a changed part of the first pagecompared with last-time rendering. In specific, the terminal can performre-rendering through the first sub-application program view layer unitbased on the first page obtained by rendering according to the initialpage data or perform re-rendering based on the first page that isrendered last time.

Regarding the application program page processing method, the parentapplication program runs on the operating system, and the parentapplication program provides a running environment for thesub-application program logic layer unit and the first sub-applicationprogram view layer unit, acquires initial page data through thesub-application program logic layer unit, and implements the renderingof the first page through the first sub-application program view layerunit. Thus, when the parent application program is running, the pagebelonging to the sub-application program can be implemented, therebysaving time of installing an application program and enhancing the useefficiency of the sub-application program. Furthermore, when the firstpage is changed, only the updated part needs to be rendered, so as tofurther enhance the use efficiency of the sub-application program.Furthermore, the sub-application program logic layer unit and the firstsub-application program view layer unit separate the view layer and thelogic layer of the application program, so as to implement and maintainthe sub-application program conveniently.

In an embodiment, before step S302, the application program pageprocessing method further includes starting the sub-application programlogic layer unit and the first sub-application program view layer unit.Referring to FIG. 5, the step of starting the sub-application programlogic layer unit and the first sub-application program view layer unitspecifically includes the following steps:

S502: Acquire a sub-application program identifier through the parentapplication program, acquire sub-application program globalconfiguration code corresponding to the sub-application programidentifier, and start the sub-application program logic layer unit andthe first sub-application program view layer unit according to thesub-application program global configuration code.

Specifically, the terminal can display a sub-application program listthrough the parent application program, receive a selection instructionaiming at options in the sub-application program list, and determine aselected option in the sub-application program list according to theselection instruction, so as to acquire the sub-application programidentifier corresponding to the selected option. The terminal furthercan make use records of the sub-application program through the parentapplication program, so as to acquire the sub-application programidentifier corresponding to the sub-application program that is usedrecently according to the use records of the sub-application.

The sub-application program global configuration code may includesub-application program global logic code and sub-application programpage global configuration code. The sub-application program global logiccode is used to start the sub-application program logic layer unit, forexample, code for describing the sub-application program global logicsuch as starting and exiting of the sub-application program andbackstage operation logic. The sub-application program page globalconfiguration code is used to start the sub-application program viewlayer unit, for example, code for describing sub-application programpage global features such as the path or shared public component of eachsub-application program page.

S504: Register the logic code of the first page through thesub-application program logic layer unit when the sub-applicationprogram logic layer unit is started.

Specifically, the terminal can acquire the logic code of eachsub-application program page according to a storage path of the logiccode of each sub-application program page recoded by the applicationprogram global logic code corresponding to the sub-application programidentifier during a starting process of the sub-application programlogic layer unit and registers the acquired logic code of eachsub-application program page, so that the sub-application program logiclayer unit learns the processing logic of each sub-application programpage.

S506: Initialize through the first sub-application program view layerunit when the first sub-application program view layer unit is startedand send an initialization completion notification to thesub-application program logic layer unit after initialization.

Initialization is used to enable the first sub-application program viewlayer unit to prepare for rendering the first page. The terminalspecifically can pre-load the public resource through the firstsub-application program view layer unit so as to perform initializationand complete initialization after completing pre-loading the publicresource.

S508: Perform step S302 through the sub-application program logic layerunit after receiving the initialization completion notification.

Specifically, after initialization, the first sub-application programview layer unit sends the initialization completion notification to thesub-application program logic layer unit, and waits for the initial pagedata. The sub-application program logic layer unit waits for theinitialization completion notification after being started, acquires theinitial page data of the first page after receiving the initializationcompletion notification, and sends the initial page data to the firstsub-application program view layer unit corresponding to the first page.

In this embodiment, the parent application program can start thesub-application program logic layer unit and the first sub-applicationprogram view layer unit after acquiring the sub-application programidentifier, the sub-application program logic layer unit completesregistration of the logic code of the first page when being started, andthe first sub-application program view layer unit performsinitialization when being started, and implements rendering andre-rendering of the first page through sequential interaction betweenthe sub-application program logic layer unit and the firstsub-application program view layer unit after initialization, therebyensuring that the first page can be rendered and updated successfully.

As shown in FIG. 6, in an embodiment, an application program pageprocessing method specifically includes steps S602-S612. Step S604 isincluded in step S304, and steps S606 to S610 are included in step S306.

S602: Acquire initial page data of a first page through asub-application program logic layer unit according to logic code of thefirst page and send the initial page data to a first sub-applicationprogram view layer unit corresponding to the first page, thesub-application program logic layer unit and the first sub-applicationprogram view layer unit running in the environment provided by a parentapplication program, and the parent application program running on anoperating system.

S604: Render the first page through the first sub-application programview layer unit according to a public component provided by the parentapplication program and the initial page data of the first page, andfeed back an initial rendering completion notification to thesub-application program logic layer unit.

The public component is a component that is provided by the parentapplication program and can be shared by different sub-applicationprograms, has a visual form, and is a constituent unit of thesub-application program page. The public component can be uniquelyidentified by a corresponding public component identifier. Differentsub-application programs share the public component, and specifically,can invoke the same public component simultaneously or at differentmoments. The public component can further be shared by the parentapplication program and the sub-application program.

The initial page data can be associated with or not be associated withthe public component, for example, for the public component fordisplaying a list, the associated initial page data can be initial listdata. The terminal renders the first page through the firstsub-application program view layer unit according to the publiccomponent and the initial page data of the first page, and specifically,renders the page initial data to the associated public component, orarrange and render the initial page data and the public component asparallel page elements.

Specifically, the terminal can acquire a sub-application program pageconfiguration file of the first page through the first sub-applicationprogram view layer unit, and then acquire a public component from apublic component library provided by the parent application programaccording to content configured in the sub-application program pageconfiguration file. The sub-application program page configuration filecan be acquired locally or from a server. The sub-application programpage configuration file is a file for configuring the page displayed bythe sub-application program. The sub-application program pageconfiguration file may be source code or code obtained by compiling thesource code.

In an embodiment, the terminal can acquire the public component providedby the parent application program and component style data correspondingto the public component through the first sub-application program viewlayer unit, and then renders the first page according to the publiccomponent, the component style data, and the initial page data of thefirst page. The component style data may include attributes, such as aposition, a size, a color, a font, and a word size, of the correspondingpublic component in the first page. The component style data may bedefault style data of the public component, and can also be recorded ina style file of the first page.

In an embodiment, the first sub-application program view layer unit canpre-load public resource when being started and acquire thesub-application program page configuration file of the first page, so asto acquire a public component from a public component library providedby the parent application program according to the sub-applicationprogram page configuration file, render the first page according to thepublic resource required for rendering the first page, the publiccomponent, and the initial page data of the first page after receivingthe initial page data of the first page and feed back an initialrendering completion notification to the sub-application program logiclayer unit.

S606: Receive the initial rendering completion notification through thesub-application program logic layer unit.

Specifically, after receiving the initial rendering completionnotification sent by the first sub-application program view layer unitthrough the sub-application program logic layer unit, the terminallearns that the first sub-application program view layer unit hascompleted first rendering of the first page according to the initialpage data, and then, performs re-rendering based on the first page thathas been rendered for the first time.

S608: Acquire a public component binding event triggered for the publiccomponent in the first page through the first sub-application programview layer unit, and transmit the public component binding event to thesub-application program logic layer unit.

The public component binding event is an event and has a bindingrelationship with the public component. The binding relationship betweenthe public component binding event and the corresponding publiccomponent may be defined in the sub-application program pageconfiguration file of the first page.

Specifically, the terminal can detect a touch point position anddetermine a public component in the first page covering the touch pointposition, thereby triggering a public component binding eventcorresponding to the public component, and transmitting the publiccomponent binding event to the sub-application program logic layer unit.In other embodiments, the touch point position can be replaced with acursor position.

S610: Make a response to the public component binding event through thesub-application program logic layer unit according to the logic code ofthe first page, acquire updated page data, and send the updated pagedata to the first sub-application program view layer unit.

Specifically, the terminal can invoke an application program programminginterface provided by the parent application program through thesub-application program logic layer unit according to the logic code ofthe first page, make a response to the public component binding event,and acquire the updated page data.

In an embodiment, the terminal can invoke an application programprogramming interface provided by an operating system through thesub-application program logic layer unit according to the logic code ofthe first page, make a response to the public component binding event,and acquire the updated page data.

In an embodiment, the terminal can invoke an application programprogramming interface provided by the parent application program throughthe sub-application program logic layer unit according to the logic codeof the first page, invoke the application program programming interfaceprovided by the operating system through the application programprogramming interface provided by the parent application program, make aresponse to the public component binding event, and acquire the updatedpage data.

S612: Re-render the updated part in the first page through the firstsub-application program view layer unit according to the updated pagedata.

In an embodiment, through step S604, the parent application program canprovide the public component so that the first sub-application programview layer unit can construct the first page quickly, thereby furtherenhancing the use efficiency of the sub-application program.Furthermore, the first sub-application program view layer unit isresponsible for performing initial rendering and re-rendering on thefirst page and perception of the public component binding event, and thesub-application program logic layer unit performs logic processing onthe public component binding event, maintenance can be performed easilyfor the view layer and the logic layer are separated and interactionlogic of the first page can be implemented more easily for the publiccomponent binding event is bound with the corresponding publiccomponent, thereby reducing development difficulty.

In an embodiment, the application program page processing method furtherincludes switching the first page to a second page. As shown in FIG. 7,the step of switching the first page to the second page includes thefollowing steps:

S702: Acquire a page switching event triggered for the first pagethrough the sub-application program logic layer unit, and determine thesecond page matching the page switching event.

Specifically, the sub-application program logic layer unit can acquirethe page switching event sent by the first sub-application program viewlayer unit, the parent application program or the operating system. Thefirst sub-application program view layer unit can detect the pageswitching event triggered in the first page and send the page switchingevent to the sub-application program logic layer unit. The terminal candetect the page switching event triggered by a physical button for thefirst page through the operating system, and transmit the page switchingevent to the parent application program, and then, the parentapplication program transmits the page switching event to thesub-application program logic layer unit. The page switching event forthe first page refers to an event of switching the first page to thesecond page.

Furthermore, the terminal can determine the second page matching thepage switching event through the sub-application program logic layerunit according to a page path defined in the logic code of the firstpage for an event processing function of the page switching event.Alternatively, the terminal can determine the second page matching thepage switching event through the sub-application program logic layerunit according the page path of the second page carried by the pageswitching event.

S704: Acquire the page data of the second page through thesub-application program logic layer unit and send the page data of thesecond page to the second sub-application program view layer unitcorresponding to the second page.

In an embodiment, step S704 includes acquiring the page data of thesecond page through the sub-application program logic layer unitaccording to the logic code of the first page when the page switchingevent is an event of switching to a new page, loading the page data ofthe second page into a page stack, and sending the page data of thesecond page to the second sub-application program view layer unitcorresponding to the second page.

Specifically, the page data of the second page acquired according to thelogic code of the first page may be the initial page data of the secondpage. The second sub-application program view layer unit can be startedby the parent application program after the first sub-applicationprogram view layer unit is started, and the second sub-applicationprogram view layer unit pre-loads public resource when being started.After determining the second page, the sub-application program logiclayer unit makes the second page correspond to the secondsub-application program view layer unit and sends the initial page dataof the second page to the second sub-application program view layer unitcorresponding to the second page. The page stack is configured to bufferthe page data of the sub-application program page that can be returned.The page data in the page stack is in a mode of first-in first-out andlast-in last-out.

In an embodiment, step S704 includes: reading the page data of thesecond page from the page stack through the sub-application programlogic layer unit when the page switching event is an event of switchingto the page that is accessed last time, and sending the page data of thesecond page to the second sub-application program view layer unitcorresponding to the second page. In this embodiment, a page stack isconfigured to temporarily store the accessed sub-application programpages, so as to return each of the accessed sub-application programpages layer by layer.

S706: Render the second page through the second sub-application programview layer unit according to the page data of the second page.

Specifically, the second sub-application program view layer unit canpre-load public resource when being started, and then render the secondpage according to the public resource required for rendering the secondpage and the page data of the second page after receiving the page dataof the second page.

In an embodiment, the terminal can render the second page through thesecond sub-application program view layer unit according to the publiccomponent provided by the parent application program and the page dataof the second page. The terminal specifically can acquire thesub-application program page configuration file of the second pagethrough the second sub-application program view layer unit, and thenacquire a public component from the public component library provided bythe parent application program according to the content configured inthe sub-application program page configuration file.

In this embodiment, different sub-application program pages aremaintained by different sub-application program view layer units, andpage logic management is performed by the same sub-application programlogic layer unit, so as to facilitate routing between sub-applicationprogram pages and development and maintenance of application programs.

In an embodiment, the application program page processing method furtherincludes: triggering the life cycle state of the first page to changethrough the parent application program, and performing an action definedby a life cycle function in the logic code of the first pagecorresponding to the changed life cycle state when monitoring that thelife cycle state of the first page is changed through thesub-application program logic layer unit.

Specifically, the terminal can trigger the life cycle state of thesub-application program page to change through the parent applicationprogram; and perform the action defined by a life cycle function in thelogic code of the sub-application program page corresponding to thechanged life cycle state when monitoring the life cycle state of thesub-application program page is changed through the sub-applicationprogram logic layer unit. The sub-application program page includes afirst page and a second page.

The life cycle state of the first page is a state for describing thelife cycle of the first page, for example, a page loading state, a pagedisplaying state, a page hiding state, and a page unloading state. Theparent application program native unit can trigger loading, displaying,hiding, and unloading of the first page, so that the first page ischanged among the page loading state, the page displaying state, thepage hiding state, and the page unloading state.

Furthermore, the logic code of the first page can define life cyclefunctions corresponding to one or more life cycle states, and the lifecycle function can define an action that needs to be performed when acorresponding life cycle state is triggered. When monitoring that thelife cycle state of the first page is changed through thesub-application program logic layer unit, if the life cycle function thelogic code of the first page corresponding to the changed life cyclestate defines an action, the terminal performs the action, and if thelife cycle function the logic code of the first page corresponding tothe changed life cycle state defines no action, the terminal performs noaction.

In this embodiment, the parent application program can trigger a changeof the life cycle state of the first page, and perform a correspondingpre-defined action through the sub-application program logic layer unitaccording to the change of the life cycle state of the first page, sothat the sub-application program can implement more functions and theapplication scope of the sub-application program becomes wider.

Referring to FIG. 8, the principle of the application program pageprocessing method is described with a specific embodiment. Afteracquiring the sub-application program identifier, the parent applicationprogram native unit starts a sub-application program logic layer treadand a first sub-application program view layer thread corresponding tothe sub-application program identifier.

When being started, the sub-application program logic layer treadpre-loads the public resource required by the sub-application programlogic layer tread through starting the life cycle function, andregisters the logic code of each sub-application program page. The firstsub-application program view layer thread loads and generates the publicresource required by the sub-application program page when beingstarted.

After determining to load the first page, the parent application programnative unit notifies the sub-application program logic layer tread andthe first sub-application program view layer thread. The sub-applicationprogram logic layer tread sends the initial page data of the first pageto the first sub-application program view layer thread, and performs anaction defined by a page loading life cycle function and an actiondefined by a page displaying life cycle function.

The first sub-application program view layer thread receives the initialpage data of the first page after initialization, renders the first pageaccording to the initial page data of the first page, and sends aninitial rendering completion notification to the sub-application programlogic layer tread after rendering.

After receiving the initial rendering completion notification, ifreceiving an event sent by the first sub-application program view layerthread, the sub-application program logic layer tread generates theupdated page data of the first page according to the event processingfunction corresponding to the event, and sends the updated page data tothe first sub-application program view layer thread. The firstsub-application program view layer thread re-renders the updated part inthe first page according to the updated page data.

Furthermore, the parent application program native unit can furthercontrol switching the first page to the second page, with a result thatthe life cycle state of the first page is changed to the page hidingstate or the page unloading state, and notifies the secondsub-application program view layer thread to load the second page. Theparent application program native unit can further control switching thesecond page to the first page, with a result that the life cycle stateof the first page is changed to the page displaying state. Thesub-application program logic layer tread can perform an action definedby the life cycle function corresponding to the changed life cycle statewhen monitoring the life cycle state of the first page is changed.

FIG. 9 is a structural block diagram of an application program pageprocessing device 900 according to an embodiment. Referring to FIG. 9,the application program page processing device 900 includes asub-application program logic layer unit 901 and a first sub-applicationprogram view layer unit 902.

The sub-application program logic layer unit 901 is configured toacquire initial page data of a first page according to logic code of thefirst page and send the initial page data of the first page to the firstsub-application program view layer unit 902 corresponding to the firstpage. The sub-application program logic layer unit 901 and the firstsub-application program view layer unit 902 run in an environmentprovided by the parent application program, and the parent applicationprogram runs on an operating system.

The first sub-application program view layer unit 902 is configured torender the first page according to the initial page data of the firstpage, and feed back an initial rendering completion notification to thesub-application program logic layer unit 901. The first sub-applicationprogram view layer unit 902 runs in an environment provided by theparent application program.

The sub-application program logic layer unit 901 is further configuredto receive the initial rendering completion notification, then acquirethe updated page data, and send the updated page data to the firstsub-application program view layer unit 902.

The first sub-application program view layer unit 902 is furtherconfigured to re-render the updated part in the first page according tothe updated page data.

For the application program page processing device 900, the parentapplication program runs on the operating system, the parent applicationprogram provides a running environment for the sub-application programlogic layer unit and the first sub-application program view layer unit,acquires the initial page data through the sub-application program logiclayer unit, and implements rendering of the first page through the firstsub-application program view layer unit. Thus, when the parentapplication program is running, the page that belongs to thesub-application program can be implemented, thereby saving time ofinstalling the application program and enhancing the use efficiency ofthe sub-application. Furthermore, when the first page is changed, onlythe updated part needs to be rendered, thereby further enhancing the useefficiency of the application program. Furthermore, the sub-applicationprogram logic layer unit and the first sub-application program viewlayer unit separate the view layer and the logic layer of theapplication program, so as to implement and maintain the sub-applicationprogram conveniently.

FIG. 10 is a structural block diagram of an application program pageprocessing device according to another embodiment. Referring to FIG. 10,the application program page processing device 900 includes asub-application program logic layer unit 901, a first sub-applicationprogram view layer unit 902, and a parent application program nativeunit 903.

The parent application program native unit 903 is configured to acquirea sub-application program identifier, acquire sub-application programglobal configuration code corresponding to the sub-application programidentifier, and start the sub-application program logic layer unit 901and the first sub-application program view layer unit 902 according tothe sub-application program global configuration code.

The sub-application program logic layer unit 901 is further configuredto register the logic code of the first page when the sub-applicationprogram logic layer unit 901 is started.

The first sub-application program view layer unit 902 is furtherconfigured to initialize when the first sub-application program viewlayer unit 902 is started, and send an initialization completionnotification to the sub-application program logic layer unit 901 afterinitialization.

The sub-application program logic layer unit 901 is further configuredto receive the initialization completion notification, then acquire theinitial page data of the first page through the sub-application programlogic layer unit 901 according to the logic code of the first page, andsend the initial page data of the first page to the firstsub-application program view layer unit 902 corresponding to the firstpage.

In this embodiment, the parent application program native unit canacquire the sub-application program identifier and then start thesub-application program logic layer unit and the first sub-applicationprogram view layer unit, the sub-application program logic layer unitcompletes the registration of the logic code of the first page whenbeing started, the first sub-application program view layer unitperforms initialization when being started, and implements rendering andre-rendering of the first page through the sequential interactionbetween the sub-application program logic layer unit and the firstsub-application program view layer unit after initialization, therebyensuring that the first page can be rendered and updated successfully.

In an embodiment, the first sub-application program view layer unit 902is further configured to render the first page according to the publiccomponent provided by the parent application program and the initialpage data of the first page, and feed back the initial renderingcompletion notification to the sub-application program logic layer unit901.

In an embodiment, the sub-application program logic layer unit 901 isfurther configured to receive the initial rendering completionnotification.

The first sub-application program view layer unit 902 is furtherconfigured to acquire a public component binding event triggered for thepublic component in the first page, and transmit the public componentbinding event to the sub-application program logic layer unit 901.

The sub-application program logic layer unit 901 is further configuredto make a response to the public component binding event according tothe logic code of the first page, acquire the updated page data, andsend the updated page data to the first sub-application program viewlayer unit 902.

In this embodiment, the parent application program can provide a publiccomponent so that the first sub-application program view layer unit canconstruct the first page quickly, thereby further enhancing the useefficiency of the application program. Furthermore, the firstsub-application program view layer unit is responsible for performinginitial rendering and re-rendering on the first page and perception ofthe public component binding event, and the sub-application programlogic layer unit performs logic processing on the public componentbinding event, maintenance can be performed easily for the view layerand the logic layer are separated and interaction logic of the firstpage can be implemented more easily for the public component bindingevent is bound with the corresponding public component, thereby reducingdevelopment difficulty.

FIG. 11 is a structural block diagram of an application program pageprocessing device 900 according to further another embodiment. Referringto FIG. 11, the application program page processing device 900 includesa sub-application program logic layer unit 901, a first sub-applicationprogram view layer unit 902, and a second sub-application program viewlayer unit 904.

The sub-application program logic layer unit 901 is further configuredto acquire a page switching event triggered for a first page, anddetermine a second page matching the page switching event according tologic code of the first page.

The sub-application program logic layer unit 901 is further configuredto acquire page data of a second page and send the page data of thesecond page to the second sub-application program view layer unit 904corresponding to the second page.

The second sub-application program view layer unit 904 is configured torender the second page according to the page data of the second page.

In this embodiment, different sub-application program pages aremaintained by different sub-application program view layer units, andpage logic management is performed by the same sub-application programlogic layer unit, so as to facilitate routing between sub-applicationprogram pages and development and maintenance of application programs.

In an embodiment, the sub-application program logic layer unit 901 isfurther configured to acquire the page data of the second page throughthe sub-application program logic layer unit 901 according to the logiccode of the first page when the page switching event is an event ofswitching to a new page, load the page data of the second page into apage stack, and send the page data of the second page to the secondsub-application program view layer unit 904 corresponding to the secondpage.

In an embodiment, the sub-application program logic layer unit 901 isfurther configured to read the page data of the second page from thepage stack through the sub-application program logic layer unit 901 whenthe page switching event is an event of switching to a page that isaccessed last time, and send the page data of the second page to thesecond sub-application program view layer unit 904 corresponding to thesecond page.

In this embodiment, the page stack is configured to temporarily storethe accessed sub-application program pages, so as to return each of theaccessed sub-application program pages layer by layer.

In an embodiment, the parent application program native unit 903 isfurther configured to trigger the life cycle state of the first page tochange.

The sub-application program logic layer unit 901 is further configuredto perform an action defined by a life cycle function in the logic codeof the first page corresponding to the changed life cycle state whenmonitoring the life cycle state of the first page is changed.

In this embodiment, the parent application program can trigger a changeof the life cycle state of the first page, and perform a correspondingpre-defined action through the sub-application program logic layer unitaccording to the change of the life cycle state of the first page, sothat the sub-application program can implement more functions and theapplication scope of the sub-application program becomes wider.

It is noted that the various modules, submodules, units, subunits, andcomponents in the present disclosure can be implemented using anysuitable technology. For example, a module or a unit can be implementedusing processing circuitry. In an example, a module or a unit can beimplemented using integrated circuit (IC). In another example, a moduleor a unit can be implemented as a processor executing softwareinstructions. In another example, interface circuitry is used toimplement receiving unit (or module) and/or sending unit (or module).

A person of ordinary skill in the art may understand that all or some ofthe steps of the method in the foregoing embodiments may be implementedby a computer program instructing relevant hardware. The computerprogram may be stored in a computer readable storage medium. When theprogram is executed, the flows of the embodiments of each of theforegoing methods may be included. The storage medium may be anon-volatile (or non-transitory) storage medium such as a magnetic disc,an optical disc, and a Read-Only Memory (ROM), or a Random Access Memory(RAM).

The technical features of the embodiments can be combined randomly, andfor simplified description, not all possible combinations of thetechnical features in the embodiments are described. However, thecombinations of the technical features should all be considered to fallin the scope of the disclosure of the specification as long as they arenot contradictory.

The foregoing embodiments only describe several implementation mannersof this application, and the description is specific and detailed, butcannot therefore be understood as a limitation to the scope of thepresent disclosure. It should be noted that a person of ordinary skillin the art may further make variations and improvements withoutdeparting from the conception of this application, and these all fallwithin the protection scope of this application. Therefore, the patentprotection scope of this application should be subject to the appendedclaims.

What is claimed is:
 1. A method for information processing, comprising:executing, by processing circuitry of a terminal device, a firstapplication program in an operating system, the execution of the firstapplication program providing a running environment for otherapplication programs; executing, by the processing circuitry, a secondapplication program in the running environment that is provided by theexecution of the first application program, the execution of the secondapplication program starting a logic process and a first view processcorresponding to a first view page of the second application program,and the logic process and the first view process respectivelyinterfacing with the running environment that is provided by theexecution of the first application program; transferring, by theprocessing circuitry and via the running environment that is provided bythe execution of the first application program, initial first page dataof the first view page from the logic process that generates the initialfirst page data based on first logic code of the first view page to thefirst view process; rendering, by the processing circuitry and in thefirst view process, the first view page according to the initial firstpage data of the first view page; and feeding back, by the processingcircuitry and via the running environment that is provided by theexecution of the first application program, a completion notificationfrom the first view process to the logic process.
 2. The method of claim1, further comprising: transferring, by the processing circuitry and viathe running environment that is provided by the execution of the firstapplication program, updated data for a portion of the first view pagefrom the logic process to the first view process; and re-rendering, bythe processing circuitry and in the first view process, the portion ofthe first view page according to the updated data for the portion of thefirst view page.
 3. The method of claim 1, further comprising:acquiring, by the processing circuitry and in the running environmentthat is provided by the execution of the first application program,global configuration codes of the second application program based on aprogram identifier of the second application program; starting, by theprocessing circuitry and in the running environment that is provided bythe execution of the first application program, the logic process andthe first view process according to the global configuration codes ofthe second application program; registering, by the processing circuitryand in the logic process, the first logic code of the first view pagewhen the logic process of the second application program starts;acquiring, by the processing circuitry and in the logic process, theinitial first page data of the first view page, according to the firstlogic code, after completion of an initialization in the first viewprocess; and sending, by the processing circuitry and via the runningenvironment, the initial first page data of the first view page, fromthe logic process to the first view process corresponding to the firstview page.
 4. The method of claim 3, further comprising: starting, bythe processing circuitry and in the running environment that is providedby the execution of the first application program, the logic processaccording to a global logic code in the global configuration codes ofthe second application program; and starting, by the processingcircuitry and in the running environment that is provided by theexecution of the first application program, the first view processaccording to a global feature of the first view page that is defined byglobal page configuration codes in the global configuration codes of thesecond application program, the global page configuration codes definingglobal features for view pages of the second application program.
 5. Themethod of claim 1, further comprising: acquiring, by the processingcircuitry and in the first view process, a public component from therunning environment that is provided by the execution of the firstapplication program, according to a page configuration file of thesecond application program, the public component being shared bydifferent application programs that are executed in the runningenvironment; and rendering, by the processing circuitry and in the firstview process, the first view page according to the public component andthe initial first page data of the first view page.
 6. The method ofclaim 5, further comprising: acquiring, by the processing circuitry andin the first view process, an event that binds with the publiccomponent; forwarding, by the processing circuitry and via the runningenvironment that is provided by the execution of the first application,the event from the first view process to the logic process; andgenerating, by the processing circuitry and in the logic process and viaan interface provided by the running environment to the publiccomponent, updated data for a portion of the first view page in responseto the event, according to the logic code of the first view page.
 7. Themethod of claim 1, further comprising: acquiring, by the processingcircuitry and in the logic process, an event that triggers a switchingfrom the first view page to a second view page; acquiring, by theprocessing circuitry and in the logic process, second page data of thesecond view page; transferring, by the processing circuitry and via therunning environment that is provided by the execution of the firstapplication, the second page data of the second view page from the logicprocess to a second view process corresponding to the second view page,the execution of the second application program in the runningenvironment starting the second view process after the first viewprocess starts; and rendering, by the processing circuitry and in thesecond view process, the second view page according to the second pagedata of the second view page.
 8. The method of claim 7, furthercomprising: when the second view page is a new view page, acquiring, bythe processing circuitry and in the logic process, the second page dataaccording to the logic code of the first view page; and loading, by theprocessing circuitry and in the logic process, the second page data intoa page stack that buffers view pages.
 9. The method of claim 8, furthercomprising: when the second view page has been accessed previously,acquiring, by the processing circuitry and in the logic process, thesecond page data from the page stack, the page stack buffering the viewpages that have been accessed previously.
 10. The method of claim 1,further comprising: triggering, in the running environment, a statechange of the first view page from a first state to a second state; andperforming, by the processing circuitry, an operation that is defined inthe first logic code of the first view page by a function associatedwith the second state.
 11. An apparatus, comprising: a storage mediumstoring a first application program; and processing circuitry configuredto: execute the first application program in an operating system, theexecution of the first application program providing a runningenvironment for other application programs; execute a second applicationprogram in the running environment that is provided by the execution ofthe first application program, the execution of the second applicationprogram starting a logic process and a first view process correspondingto a first view page of the second application program, and the logicprocess and the first view process respectively interfacing with therunning environment that is provided by the execution of the firstapplication program; transfer, via the running environment that isprovided by the execution of the first application program, initialfirst page data of the first view page from the logic process thatgenerates the initial first page data based on first logic code of thefirst view page to the first view process; render, in the first viewprocess, the first view page according to the initial first page data ofthe first view page; and feed back, via the running environment that isprovided by the execution of the first application program, a completionnotification from the first view process to the logic process.
 12. Theapparatus of claim 11, wherein the processing circuitry is furtherconfigured to: transfer, via the running environment that is provided bythe execution of the first application program, updated data for aportion of the first view page from the logic process to the first viewprocess; and re-render, in the first view process, the portion of thefirst view page according to the updated data for the portion of thefirst view page.
 13. The apparatus of claim 11, wherein the processingcircuitry is further configured to: acquire, in the running environmentthat is provided by the execution of the first application program,global configuration codes of the second application program based on aprogram identifier of the second application program; start, in therunning environment that is provided by the execution of the firstapplication program, the logic process and the first view processaccording to the global configuration codes of the second applicationprogram; register, in the logic process, the first logic code of thefirst view page when the logic process of the second application programstarts; acquire, in the logic process, the initial first page data ofthe first view page, according to the first logic code, after completionof an initialization in the first view process; and send, via therunning environment, the initial first page data of the first view page,from the logic process to the first view process corresponding to thefirst view page.
 14. The apparatus of claim 13, wherein the processingcircuitry is further configured to: start, in the running environmentthat is provided by the execution of the first application program, thelogic process according to a global logic code in the globalconfiguration codes of the second application program; and start, in therunning environment that is provided by the execution of the firstapplication program, the first view process according to a globalfeature of the first view page that is defined by global pageconfiguration codes in the global configuration codes of the secondapplication program, the global page configuration codes defining globalfeatures for view pages of the second application program.
 15. Theapparatus of claim 11, wherein the processing circuitry is furtherconfigured to: acquire, in the first view process, a public componentfrom the running environment that is provided by the execution of thefirst application program, according to a page configuration file of thesecond application program, the public component being shared bydifferent application programs that are executed in the runningenvironment that is provided by the execution of the first applicationprogram; and render, in the first view process, the first view pageaccording to the public component and the initial first page data of thefirst view page.
 16. The apparatus of claim 15, wherein the processingcircuitry is further configured to: acquire, in the first view process,an event that binds with the public component; forward, via the runningenvironment that is provided by the execution of the first application,the event from the first view process to the logic process; andgenerate, in the logic process and via an interface provided by therunning environment to the public component, updated data for a portionof the first view page in response to the event, according to the logiccode of the first view page.
 17. The apparatus of claim 11, wherein theprocessing circuitry is further configured to: acquire, in the logicprocess, an event that triggers a switching from the first view page toa second view page; acquire, in the logic process, second page data ofthe second view page; transfer, via the running environment that isprovided by the execution of the first application, the second page dataof the second view page from the logic process to a second view processcorresponding to the second view page, the execution of the secondapplication program in the running environment starting the second viewprocess after the first view process starts; and render, in the secondview process, the second view page according to the second page data ofthe second view page.
 18. The apparatus of claim 17, wherein theprocessing circuitry is further configured to: when the second view pageis a new view page, acquire, in the logic process, the second page dataaccording to the logic code of the first view page; and load, in thelogic process, the second page data into a page stack that buffers viewpages; and when the second view page has been accessed previously,acquire, in the logic process, the second page data from the page stack,the page stack buffering the view pages that have been accessedpreviously.
 19. The apparatus of claim 11, wherein the processingcircuitry is further configured to: trigger, in the running environment,a state change of the first view page from a first state to a secondstate; and perform an operation that is defined in the first logic codeof the first view page by a function associated with the second state.20. A non-transitory computer readable medium storing computer-readableinstructions therein which when executed by a computer cause thecomputer to perform: executing a first application program in anoperating system, the execution of the first application programproviding a running environment for other application programs;executing a second application program in the running environment thatis provided by the execution of the first application program, theexecution of the second application program starting a logic process anda first view process corresponding to a first view page of the secondapplication program, and the logic process and the first view processrespectively interfacing with the running environment that is providedby the execution of the first application program; transferring, via therunning environment that is provided by the execution of the firstapplication program, initial first page data of the first view page fromthe logic process that generates the initial first page data based onfirst logic code of the first view page to the first view process;rendering, in the first view process, the first view page according tothe initial first page data of the first view page; and feeding back,via the running environment that is provided by the execution of thefirst application program, a completion notification from the first viewprocess to the logic process.